%   UNRATE /	core infl (q)	/core infl (5yMA 1sided)	/ ygap	/ infl (q)	/ infl(5yMA 1sided) / 	ffr
data = [
6.300000	0.454440	2.768760	-3.678747	0.828407	2.887489	1.860000
7.400000	0.452380	2.406450	-3.920831	0.423381	2.603726	0.940000
7.300000	0.338600	2.051400	-2.534582	0.240293	2.070100	1.320000
6.400000	0.563560	1.808980	-1.136453	0.122854	1.614935	2.160000
5.800000	0.446310	1.800850	-0.187957	0.495729	1.282257	2.570000
5.100000	0.557910	1.906380	1.307294	0.278859	1.137735	3.080000
5.300000	0.441860	2.009640	0.190777	0.411059	1.308501	3.580000
5.600000	0.661530	2.107610	-0.352884	0.386357	1.572004	3.990000
5.100000	0.440310	2.101610	0.887637	0.201236	1.277511	3.930000
5.200000	0.215920	1.759620	-0.477756	0.361208	1.359860	3.700000
5.500000	-0.107730	1.210030	-1.220441	0.451107	1.399908	2.940000
6.300000	0.545750	1.094250	-3.429308	0.449081	1.462632	2.300000
6.800000	0.214520	0.868460	-3.733075	0.113372	1.374769	2.000000
7.000000	0.324330	0.976870	-2.845302	0.209400	1.222961	1.730000
6.800000	0.433190	1.517790	-2.149428	0.220246	0.992100	1.680000
6.200000	0.321880	1.293920	-1.107431	0.236646	0.779665	2.400000
5.600000	0.211760	1.291160	-0.296252	0.505222	1.171514	2.460000
5.500000	0.429030	1.395860	-0.251707	0.273996	1.236110	2.610000
5.600000	0.318810	1.281480	-0.348897	0.234257	1.250121	2.850000
5.500000	0.209740	1.169340	-1.027471	0.233710	1.247185	2.920000
5.800000	0.212480	1.170060	-1.024794	0.487914	1.229877	2.970000
5.700000	0.420890	1.161920	-0.836230	0.077404	1.033285	2.960000
5.500000	0.422270	1.265380	-0.008404	0.099431	0.898459	3.330000
5.600000	0.520920	1.576560	-0.402527	0.654874	1.319623	3.450000
5.500000	0.521340	1.885420	0.661096	0.377762	1.209470	3.460000
5.200000	0.102480	1.567010	0.767115	0.300096	1.432163	3.490000
5.000000	0.207860	1.352600	1.040731	0.499974	1.832705	3.460000
5.000000	0.517030	1.348710	0.317948	0.427340	1.605171	3.580000
4.900000	0.409650	1.237020	1.671305	0.430896	1.658305	3.970000
4.700000	0.306750	1.441290	1.957191	0.461152	1.819361	4.080000
4.400000	0.100920	1.334350	2.894569	0.459035	1.778422	4.070000
4.100000	0.510190	1.327510	4.142575	0.647595	1.998677	4.170000
3.900000	0.507600	1.425460	5.495875	0.611881	2.179662	4.560000
3.800000	1.007050	2.125760	4.789227	0.905647	2.624157	4.910000
3.800000	0.898200	2.923040	4.367758	0.882023	3.047146	5.410000
3.700000	0.988130	3.400980	4.079186	0.817969	3.217519	5.560000
3.800000	0.587660	3.481040	3.827316	0.419245	3.024884	4.820000
3.800000	0.779950	3.253940	2.744839	0.595164	2.714401	3.990000
3.800000	1.063770	3.419510	2.436629	0.893697	2.726075	3.890000
3.900000	1.049700	3.481080	2.075373	1.089847	2.997954	4.170000
3.700000	1.231800	4.125220	2.949133	1.087935	3.666643	4.790000
3.600000	1.026160	4.371430	3.471441	1.110280	4.181759	5.980000
3.500000	1.387620	4.695280	3.057600	0.958474	4.246536	5.940000
3.400000	1.461690	5.107270	2.396557	1.387449	4.544138	5.920000
3.400000	1.348910	5.224380	2.867037	1.002230	4.458434	6.570000
3.400000	1.597150	5.795370	2.169236	1.313134	4.661287	8.330000
3.600000	1.396490	5.804240	1.819627	1.415194	5.118007	8.980000
3.600000	1.377260	5.719810	0.461247	1.241856	4.972414	8.940000
4.200000	1.529320	5.900220	-0.565626	1.369423	5.339607	8.570000
4.800000	1.842690	6.145760	-1.174314	1.434478	5.460952	7.880000
5.200000	1.313880	6.063150	-1.043473	0.814294	4.860052	6.700000
5.800000	1.622870	6.308760	-2.808356	1.295260	4.913455	5.570000
5.900000	0.957690	5.737130	-0.897846	1.516378	5.060409	3.860000
5.900000	1.026870	4.921310	-1.067932	1.330714	4.956645	4.560000
6.000000	0.861500	4.468930	-1.027358	1.003109	5.145461	5.470000
5.900000	0.542280	3.388340	-1.474536	0.820775	4.670977	4.750000
5.800000	0.849540	3.280190	-0.458726	1.617571	4.772170	3.540000
5.700000	0.764340	3.017660	1.094217	0.600409	4.041865	4.300000
5.600000	0.758540	2.914700	1.268318	0.879970	3.918726	4.740000
5.400000	0.529020	2.901440	2.163703	1.120693	4.218644	5.140000
4.900000	0.748870	2.800770	3.843968	1.275597	3.876669	6.540000
4.900000	1.042410	3.078840	4.180643	1.627432	4.903692	7.820000
4.800000	1.029450	3.349750	2.824110	1.853273	5.876995	10.560000
4.800000	1.677130	4.497860	2.916308	1.716253	6.472556	10.000000
5.100000	1.576340	5.325330	1.197842	2.017022	7.213981	9.320000
5.200000	2.612580	6.895500	0.544628	2.210944	7.797493	11.250000
5.600000	3.437390	9.303440	-1.353580	3.004443	8.948663	12.090000
6.600000	2.926220	10.552530	-2.672474	2.990144	10.222553	9.350000
8.300000	2.131780	11.107970	-4.776031	2.234251	10.439782	6.300000
8.900000	1.580650	10.076040	-4.860086	1.449395	9.678232	5.420000
8.500000	1.307600	7.946250	-4.050468	1.763759	8.437548	6.160000
8.300000	1.722200	6.742230	-3.524444	1.652516	7.099921	5.410000
7.700000	1.872500	6.482950	-2.071481	1.071345	5.937015	4.830000
7.600000	1.364770	6.267070	-2.087233	0.996158	5.483779	5.200000
7.700000	1.637790	6.597260	-2.343240	1.268938	4.988957	5.280000
7.800000	1.381690	6.256750	-2.361772	1.664299	5.000739	4.870000
7.500000	1.647360	6.031610	-1.995747	1.590566	5.519961	4.660000
7.100000	1.618990	6.285830	-0.852101	1.559941	6.083744	5.160000
6.900000	1.429910	6.077950	0.091440	1.378078	6.192884	5.820000
6.700000	1.354470	6.050730	-0.720208	1.670647	6.199232	6.510000
6.300000	1.764720	6.168090	-1.208066	1.659572	6.268238	6.760000
6.000000	2.049410	6.598510	1.729891	1.895292	6.603588	7.280000
6.000000	2.162730	7.331330	1.827080	1.723242	6.948752	8.100000
5.900000	2.218260	8.195120	2.293917	2.011899	7.290005	9.580000
5.900000	2.318050	8.748450	1.644096	1.817790	7.448223	10.070000
5.700000	2.360950	9.059990	0.956303	2.356114	7.909045	10.180000
5.900000	2.588980	9.486240	0.899658	2.018539	8.204341	10.950000
6.000000	3.028930	10.296910	0.434529	1.942928	8.135370	13.580000
6.300000	3.697570	11.676430	0.111942	2.143637	8.461217	15.050000
7.300000	3.350520	12.666000	-2.481241	2.164736	8.269839	12.690000
7.700000	1.496260	11.573280	-3.149065	2.270419	8.521720	9.840000
7.400000	3.111790	11.656140	-1.824454	2.771733	9.350525	15.850000
7.400000	2.343540	10.302110	-0.309961	2.551382	9.758270	16.570000
7.400000	2.211870	9.163460	-1.650118	1.756102	9.349636	17.780000
7.400000	3.379270	11.046470	-1.156445	1.848079	8.927296	17.580000
8.200000	1.945640	9.880320	-3.019950	1.784536	7.940099	13.590000
8.800000	1.225510	8.762290	-5.489760	1.335579	6.724296	14.230000
9.400000	1.850170	8.400590	-5.746984	1.228309	6.196503	14.510000
9.900000	1.677150	6.698470	-6.926005	1.400114	5.748538	11.010000
10.700000	0.343300	5.096130	-7.655483	1.080657	5.044660	9.290000
10.400000	0.616440	4.487060	-7.143433	0.846764	4.555845	8.650000
10.100000	0.987410	3.624300	-5.679587	0.673036	4.000572	8.800000
9.400000	1.246710	3.193860	-4.542480	1.040084	3.640542	9.460000
8.500000	1.298270	4.148830	-3.319288	0.722412	3.282296	9.430000
7.900000	1.380220	4.912610	-2.205014	1.034760	3.470292	9.690000
7.400000	1.232090	5.157290	-1.349238	0.879784	3.677040	10.560000
7.400000	1.248800	5.159380	-1.272954	0.821969	3.458926	11.390000
7.300000	1.012330	4.873440	-1.395037	0.619639	3.356153	9.270000
7.200000	1.095180	4.588400	-1.335179	1.176869	3.498262	8.480000
7.300000	1.053580	4.409890	-1.358486	0.564914	3.183392	7.920000
7.200000	0.888140	4.049230	-0.749613	0.639994	3.001416	7.900000
7.000000	1.154620	4.191520	-0.934345	0.535692	2.917469	8.100000
7.000000	1.081080	4.177420	-0.923257	0.484672	2.225272	7.830000
7.200000	0.831550	3.955390	-1.371659	0.370969	2.031327	6.920000
7.000000	0.943140	4.010390	-1.264351	0.465197	1.856529	6.210000
6.800000	0.963220	3.818990	-1.630318	0.602217	1.923054	6.270000
6.600000	0.809190	3.547100	-1.803526	0.585123	2.023505	6.220000
6.300000	1.204480	3.920030	-1.541608	0.652103	2.304640	6.650000
6.000000	0.935110	3.912000	-1.478354	0.736052	2.575495	6.840000
5.800000	1.151320	4.100100	-0.667034	0.778536	2.751815	6.920000
5.700000	0.971690	4.262600	-0.917914	0.772522	2.939214	6.660000
5.500000	1.208900	4.267020	-0.405119	0.987332	3.274443	7.160000
5.500000	1.113800	4.445710	-0.617040	1.200591	3.738982	7.980000
5.300000	1.208700	4.503090	-0.078939	0.853363	3.813809	8.470000
5.200000	1.061310	4.592710	0.151880	1.012943	4.054230	9.440000
5.200000	1.076950	4.460760	0.164404	1.046360	4.113258	9.730000
5.200000	0.961030	4.307990	0.148443	0.733251	3.645918	9.080000
5.400000	1.209730	4.309020	-0.384562	0.661958	3.454513	8.610000
5.300000	1.271550	4.519260	-0.023469	1.109300	3.550870	8.250000
5.300000	1.305290	4.747600	-0.340114	1.025062	3.529571	8.240000
5.700000	1.486990	5.273560	-0.999012	0.897135	3.693455	8.160000
6.100000	1.147990	5.211820	-2.517606	0.774014	3.805511	7.740000
6.600000	1.448570	5.388840	-3.624195	0.986229	3.682439	6.430000
6.800000	0.903850	4.987400	-3.461725	0.669074	3.326452	5.860000
6.900000	1.085380	4.585790	-3.582048	0.718011	3.147328	5.640000
7.100000	0.933040	4.370840	-3.742152	0.526537	2.899851	4.820000
7.400000	0.878640	3.800910	-3.168601	0.458099	2.371721	4.020000
7.600000	0.870300	3.767360	-2.683885	0.630737	2.333384	3.770000
7.600000	0.772830	3.454810	-2.333720	0.464452	2.079825	3.260000
7.400000	0.901490	3.423260	-1.964315	0.689852	2.243140	3.040000
7.100000	0.871310	3.415930	-2.425746	0.600090	2.385131	3.040000
7.100000	0.841860	3.387490	-2.487758	0.600669	2.355063	3.000000
6.800000	0.593010	3.207670	-2.666134	0.508851	2.399462	3.060000
6.600000	0.786020	3.092200	-2.016106	0.562522	2.272131	2.990000
6.600000	0.649910	2.870800	-1.725855	0.517087	2.189128	3.210000
6.200000	0.688330	2.717270	-1.077022	0.491348	2.079807	3.940000
6.000000	0.748400	2.872660	-1.208997	0.499754	2.070710	4.490000
5.600000	0.636540	2.723180	-0.808461	0.564460	2.072648	5.170000
5.500000	0.843140	2.916410	-1.206152	0.602694	2.158255	5.810000
5.700000	0.815390	3.043470	-1.580979	0.447655	2.114562	6.020000
5.700000	0.663830	2.958900	-1.458631	0.427130	2.041938	5.800000
5.600000	0.700250	3.022610	-1.490605	0.475386	1.952865	5.720000
5.500000	0.675120	2.854590	-1.578021	0.509843	1.860014	5.360000
5.500000	0.589520	2.628720	-0.607870	0.376767	1.789126	5.240000
5.300000	0.646670	2.611560	-0.474088	0.453374	1.815370	5.310000
5.300000	0.641910	2.553220	-0.240884	0.421561	1.761545	5.280000
5.200000	0.578580	2.456680	-0.354241	0.490659	1.742361	5.280000
5.000000	0.634740	2.501900	0.226034	0.463907	1.829501	5.520000
4.900000	0.433300	2.288530	0.542642	0.290610	1.666737	5.530000
4.700000	0.569160	2.215780	0.340445	0.342016	1.587192	5.510000
4.600000	0.604560	2.241760	0.329128	0.143858	1.240391	5.520000
4.400000	0.562540	2.169560	0.274192	0.228728	1.005213	5.500000
4.500000	0.597570	2.333830	0.544630	0.361087	1.075689	5.530000
4.400000	0.556070	2.320740	1.140653	0.261448	0.995121	4.860000
4.300000	0.438050	2.154230	0.916983	0.373931	1.225194	4.730000
4.300000	0.474850	2.066540	0.727404	0.417600	1.414066	4.750000
4.200000	0.528710	1.997680	0.977261	0.353532	1.406511	5.090000
4.100000	0.563700	2.005310	1.707219	0.490124	1.635187	5.310000
4.000000	0.654150	2.221410	1.027994	0.740566	2.001821	5.680000
3.900000	0.630960	2.377520	1.925912	0.549091	2.133312	6.270000
4.000000	0.664080	2.512890	1.091783	0.638644	2.418425	6.520000
3.900000	0.604730	2.553920	0.728237	0.530518	2.458819	6.470000
4.200000	0.728420	2.628190	-0.456905	0.634854	2.353107	5.590000
4.400000	0.615190	2.612420	-0.783685	0.697778	2.501794	4.330000
4.800000	0.682600	2.630940	-1.919100	0.323256	2.186406	3.500000
5.500000	0.660840	2.687050	-2.422160	0.312718	1.968605	2.130000
5.700000	0.549560	2.508190	-2.230387	0.292805	1.626557	1.730000
5.800000	0.511640	2.404640	-2.364593	0.412265	1.341044	1.750000
5.700000	0.526410	2.248450	-2.534791	0.441092	1.458879	1.740000
5.900000	0.453480	2.041090	-3.107642	0.520917	1.667078	1.440000
5.900000	0.330500	1.822030	-3.221981	0.622700	1.996973	1.250000
6.100000	0.173020	1.483410	-2.915545	0.323203	1.907911	1.250000
6.100000	0.397820	1.354820	-1.864006	0.540963	2.007782	1.020000
5.800000	0.258310	1.159650	-1.308600	0.494565	1.981430	1.000000
5.700000	0.480760	1.309910	-1.349759	0.857093	2.215823	1.000000
5.600000	0.632310	1.769200	-1.249980	0.837430	2.730051	1.010000
5.400000	0.425000	1.796380	-0.974214	0.652857	2.841944	1.430000
5.400000	0.608930	2.147000	-0.737752	0.696378	3.043757	1.950000
5.300000	0.621890	2.288130	-0.298156	0.918457	3.105121	2.470000
5.100000	0.467670	2.123490	-0.383805	0.718036	2.985727	2.940000
5.000000	0.332780	2.031270	-0.135650	0.924181	3.257051	3.460000
5.000000	0.662850	2.085190	-0.133491	0.753655	3.314328	3.980000
4.700000	0.625890	2.089190	0.532140	0.768272	3.164142	4.460000
4.600000	0.818360	2.439880	0.335733	0.820577	3.266684	4.910000
4.600000	0.681710	2.788810	-0.049979	0.696382	3.038886	5.250000
4.400000	0.515560	2.641520	0.271485	0.357366	2.642597	5.250000
4.500000	0.586050	2.601680	-0.113341	1.111065	2.985390	5.260000
4.500000	0.485530	2.268850	0.205080	0.574599	2.739412	5.250000
4.700000	0.515550	2.102690	0.440101	0.330674	2.373703	5.070000
4.800000	0.703770	2.290900	0.367542	0.416405	2.432742	4.500000
5.000000	0.662170	2.367020	-0.747393	0.571136	1.892814	3.180000
5.300000	0.434490	2.315980	-0.684660	0.440625	1.758841	2.090000
6.000000	0.643800	2.444230	-1.582936	0.682920	2.111086	1.940000
6.900000	0.244970	1.985430	-4.113970	0.186537	1.881219	0.510000
8.300000	0.419570	1.742830	-5.869540	0.240180	1.550262	0.180000
9.300000	0.509650	1.817990	-6.310469	-0.156052	0.953586	0.180000
9.600000	0.298300	1.472490	-6.261861	-0.007008	0.263658	0.160000
9.900000	0.511480	1.739000	-5.553956	0.300902	0.378023	0.120000
9.800000	0.014950	1.334380	-5.349118	0.332835	0.470678	0.130000
9.600000	0.125500	0.950230	-4.608066	0.460551	1.087281	0.190000
9.500000	0.242090	0.894020	-4.154195	0.457454	1.551743	0.190000
9.500000	0.261370	0.643910	-3.754197	0.510308	1.761149	0.190000
9.000000	0.472750	1.101710	-4.406457	0.436460	1.864773	0.160000
9.100000	0.467380	1.443590	-3.960655	0.740351	2.144573	0.090000
9.000000	0.683760	1.885260	-4.043979	0.579880	2.266999	0.080000
8.600000	0.533370	2.157260	-3.230914	0.137710	1.894401	0.070000
8.300000	0.525700	2.210210	-2.889635	0.530765	1.988706	0.100000
8.200000	0.491390	2.234220	-2.759951	0.443180	1.691535	0.150000
8.000000	0.451910	2.002370	-2.989809	0.586289	1.697944	0.140000
7.800000	0.465940	1.934940	-3.327973	0.368823	1.929057	0.160000
7.700000	0.513920	1.923160	-3.004394	0.359003	1.757294	0.140000
7.500000	0.232210	1.663980	-3.193612	0.232052	1.546167	0.120000
7.300000	0.510110	1.722180	-2.814637	0.511989	1.471866	0.080000
6.900000	0.443920	1.700160	-2.238914	0.523313	1.626357	0.090000
6.700000	0.415180	1.601420	-2.933004	0.431854	1.699208	0.070000
6.200000	0.510380	1.879590	-2.366621	0.529390	1.996545	0.090000
6.100000	0.393260	1.762740	-1.565855	0.425900	1.910456	0.090000
5.700000	0.387110	1.705930	-1.407873	0.130893	1.518036	0.100000
5.500000	0.397730	1.688480	-1.317122	-0.012807	1.073375	0.110000
5.400000	0.571350	1.749450	-1.091480	0.561059	1.105044	0.120000
5.100000	0.473760	1.829950	-1.018202	0.314274	0.993419	0.140000
5.000000	0.554300	1.997140	-1.216293	0.208365	1.070891	0.160000
4.900000	0.630290	2.229700	-1.416844	0.123907	1.207606	0.360000
4.900000	0.514420	2.172770	-1.464223	0.570521	1.217068	0.370000
4.900000	0.508950	2.207960	-0.995803	0.353475	1.256268	0.400000
4.700000	0.508390	2.162050	-0.874046	0.514517	1.562420	0.450000
4.700000	0.612840	2.144600	-0.977322	0.559738	1.998250	0.700000];

%   UNRATE /	core infl (q)	/core infl (5yMA 1sided)	/ ygap	/ infl (q)	/ infl(5yMA 1sided) / 	ffr
unemp     = data(:,1);
inflcore  = data(:,2);
inflcoreMA= data(:,3);
ygap      = data(:,4);
infl      = data(:,5);
inflMA    = data(:,6);
ffr       = data(:,7);

quarter = (1958:0.25:2017)';

clear data;
% figure; for i = 1:7; subplot(3,3,i); plot(data(:,i)); end;




